package com.bw.services.model

import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object DevicesModule {

    @Singleton
    @Provides
    fun getCar_ManageApiServer(retrofit: Retrofit): ServicesApiServer =retrofit.create(ServicesApiServer::class.java)

    @Singleton
    @Provides
    fun getCar_ManageRepo(apiServer: ServicesApiServer):ServicesRepo{
        return  ServicesRepo(apiServer)
    }
}